package com.lanchetech.dao;

import com.lanchetech.bean.vo.RankNicknamePerformanceVO;
import com.lanchetech.entity.Performance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.Rank;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface PerformanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Performance record);

    int insertSelective(Performance record);

    Performance selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Performance record);

    int updateByPrimaryKey(Performance record);

    BigDecimal getPerformanceAccountByUserIdAndType(@Param("id") Long id, @Param("type") Byte type);

    List<RankNicknamePerformanceVO> getRankByType(@Param("type") Byte type);



}